package com.memory.modules.business.domain.earn;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @PackageName: com.memory.modules.business.domain.earn
 * @ClassName: AccountEarn
 * @Description:
 * @author: zhuguangxun
 * @date 2021/3/13
 */
@Data
@Entity
@Table(name = "account_earn")
@EntityListeners(AuditingEntityListener.class)
public class AccountEarn implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    private Long accountId;

    private BigDecimal count;

    private BigDecimal earnPrice;

    private BigDecimal withdrawPrice;

    private String createBy;

    private Date createDate;
}
